import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'

const datas: Array<any> = [
        {
        srfkey: 'Task_Town_Q_M',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'dfp',
                label: '待分配',
                text: '待分配',
                value: 'dfp',
                disabled: false,
            },
            {
                id: 'yfp',
                label: '已分配',
                text: '已分配',
                value: 'yfp',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'Shop_Examine_Q',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'TOBERE',
                label: '待审核',
                text: '待审核',
                value: 'TOBERE',
                disabled: false,
            },
            {
                id: 'AGREE',
                label: '已同意',
                text: '已同意',
                value: 'AGREE',
                disabled: false,
            },
            {
                id: 'REFUSE',
                label: '已拒绝',
                text: '已拒绝',
                value: 'REFUSE',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CampEvaluationQ',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'TOBEEVAL',
                label: '待评定',
                text: '待评定',
                value: 'TOBEEVAL',
                disabled: false,
            },
            {
                id: 'Assessed',
                label: '已评定',
                text: '已评定',
                value: 'Assessed',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopManageQ',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'NORMAL',
                label: '正常',
                text: '正常',
                value: 'NORMAL',
                disabled: false,
            },
            {
                id: 'CLOSED',
                label: '已关闭',
                text: '已关闭',
                value: 'CLOSED',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ISdistribution',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '未分配',
                text: '未分配',
                value: '0',
                disabled: false,
            },
            {
                id: '1',
                label: '已分配',
                text: '已分配',
                value: '1',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopExamineStatus',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '待审核',
                text: '待审核',
                value: '0',
                disabled: false,
            },
            {
                id: '1',
                label: '审核通过',
                text: '审核通过',
                value: '1',
                disabled: false,
            },
            {
                id: '2',
                label: '已驳回',
                text: '已驳回',
                value: '2',
                disabled: false,
            },
            {
                id: '3',
                label: '已拒绝',
                text: '已拒绝',
                value: '3',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'EvaluateType',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '营地教官',
                text: '营地教官',
                value: 0,
                disabled: false,
            },
            {
                id: '1',
                label: '老师',
                text: '老师',
                value: 1,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'OrderQ',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'TOBECONFIRMED',
                label: '待确认',
                text: '待确认',
                value: 'TOBECONFIRMED',
                disabled: false,
            },
            {
                id: 'TOBECOMPLETE',
                label: '待完成',
                text: '待完成',
                value: 'TOBECOMPLETE',
                disabled: false,
            },
            {
                id: 'TOBEEVALUATE',
                label: '待评价',
                text: '待评价',
                value: 'TOBEEVALUATE',
                disabled: false,
            },
            {
                id: 'ALREADYEVALUATE',
                label: '已评价',
                text: '已评价',
                value: 'ALREADYEVALUATE',
                disabled: false,
            },
            {
                id: 'CLOSED',
                label: '已关闭',
                text: '已关闭',
                value: 'CLOSED',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopCategory',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '1',
                label: '营地',
                text: '营地',
                value: 1,
                disabled: false,
            },
            {
                id: '2',
                label: '商户',
                text: '商户',
                value: 2,
                disabled: false,
            },
            {
                id: '3',
                label: '体验点',
                text: '体验点',
                value: 3,
                disabled: false,
            },
            {
                id: '4',
                label: '农户',
                text: '农户',
                value: 4,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopEnabledStatus',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '开启',
                text: '开启',
                value: '0',
                disabled: false,
            },
            {
                id: '1',
                label: '关闭',
                text: '关闭',
                value: '1',
                disabled: false,
            },
        ]
    },
    {
        "srfkey": "EffectiveVillageC",
        "emptytext": "未定义",
        "codelisttype":"dynamic",
        "appdataentity":"Town_info",
        "appdedataset":"FetchEffectiveVillage",
        "items": []
    },
    {
        srfkey: 'TaskStatus',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '完善信息',
                text: '完善信息',
                value: '0',
                disabled: false,
            },
            {
                id: '1',
                label: '待派单',
                text: '待派单',
                value: '1',
                disabled: false,
            },
            {
                id: '3',
                label: '待评价',
                text: '待评价',
                value: '3',
                disabled: false,
            },
            {
                id: '2',
                label: '待完成',
                text: '待完成',
                value: '2',
                disabled: false,
            },
            {
                id: '4',
                label: '已评价',
                text: '已评价',
                value: '4',
                disabled: false,
            },
            {
                id: '5',
                label: '已关闭',
                text: '已关闭',
                value: '5',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopExamineStep',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '10',
                label: '村干部审核',
                text: '村干部审核',
                value: '10',
                disabled: false,
            },
            {
                id: '20',
                label: '镇干部审核',
                text: '镇干部审核',
                value: '20',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'Task_Shop_Q_T_M',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'dwc',
                label: '待完成',
                text: '待完成',
                value: 'dwc',
                disabled: false,
            },
            {
                id: 'dpj',
                label: '待评价',
                text: '待评价',
                value: 'dpj',
                disabled: false,
            },
            {
                id: 'ypj',
                label: '已评价',
                text: '已评价',
                value: 'ypj',
                disabled: false,
            },
        ]
    },
    {
        "srfkey": "AgricProd",
        "emptytext": "未定义",
        "codelisttype":"dynamic",
        "appdataentity":"AgricultureProducts",
        "appdedataset":"FetchDefault",
        "items": []
    },
    {
        srfkey: 'ShopSecondaryCategory',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '餐饮',
                text: '餐饮',
                value: 0,
                disabled: false,
            },
            {
                id: '1',
                label: '民宿',
                text: '民宿',
                value: 1,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'EVALUATION_STATUS',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '未评',
                text: '未评',
                value: '0',
                disabled: false,
            },
            {
                id: '2',
                label: '营地评分中',
                text: '营地评分中',
                value: '2',
                disabled: false,
            },
            {
                id: '1',
                label: '已评定',
                text: '已评定',
                value: '1',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'EvaluationQ',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'TOBEEVAL',
                label: '待评定',
                text: '待评定',
                value: 'TOBEEVAL',
                disabled: false,
            },
            {
                id: 'CAMPPF',
                label: '营地评分中',
                text: '营地评分中',
                value: 'CAMPPF',
                disabled: false,
            },
            {
                id: 'Assessed',
                label: '已评定',
                text: '已评定',
                value: 'Assessed',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'UpandDownStatus',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '1',
                label: '已上架',
                text: '已上架',
                value: '1',
                disabled: false,
            },
            {
                id: '0',
                label: '已下架',
                text: '已下架',
                value: '0',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopCategoryHome',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '1',
                label: '营地',
                text: '营地',
                value: 1,
                disabled: false,
            },
            {
                id: '2',
                label: '商户',
                text: '商户',
                value: 2,
                disabled: false,
            },
            {
                id: '3',
                label: '体验点',
                text: '体验点',
                value: 3,
                disabled: false,
            },
            {
                id: '4',
                label: '农户',
                text: '农户',
                value: 4,
                disabled: false,
            },
        ]
    },
    {
        "srfkey": "EffectiveVillage",
        "emptytext": "未定义",
        "codelisttype":"dynamic",
        "appdataentity":"Town_info",
        "appdedataset":"FetchCurTownEffectiveVillage",
        "items": []
    },
    {
        srfkey: 'Task_Shop_Q_M',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'dfp',
                label: '待分配',
                text: '待分配',
                value: 'dfp',
                disabled: false,
            },
            {
                id: 'dwc',
                label: '待完成',
                text: '待完成',
                value: 'dwc',
                disabled: false,
            },
            {
                id: 'dpj',
                label: '待评价',
                text: '待评价',
                value: 'dpj',
                disabled: false,
            },
            {
                id: 'ypj',
                label: '已评价',
                text: '已评价',
                value: 'ypj',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'Score',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '很满意',
                text: '很满意',
                value: 0,
                disabled: false,
            },
            {
                id: '1',
                label: '满意',
                text: '满意',
                value: 1,
                disabled: false,
            },
            {
                id: '2',
                label: '一般',
                text: '一般',
                value: 2,
                disabled: false,
            },
            {
                id: '3',
                label: '不满意',
                text: '不满意',
                value: 3,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'ShopCategoryCss',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '1',
                label: '营地',
                text: '营地',
                value: 1,
                disabled: false,
            },
            {
                id: '2',
                label: '商户',
                text: '商户',
                value: 2,
                disabled: false,
            },
            {
                id: '3',
                label: '体验点',
                text: '体验点',
                value: 3,
                disabled: false,
            },
            {
                id: '4',
                label: '农户',
                text: '农户',
                value: 4,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'Manager_Type',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '政府端',
                text: '政府端',
                value: 0,
                disabled: false,
            },
            {
                id: '1',
                label: '商户端',
                text: '商户端',
                value: 1,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'Notice_Type',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '订单',
                text: '订单',
                value: 0,
                disabled: false,
            },
            {
                id: '1',
                label: '任务',
                text: '任务',
                value: 1,
                disabled: false,
            },
            {
                id: '2',
                label: '入驻审核',
                text: '入驻审核',
                value: 2,
                disabled: false,
            },
            {
                id: '3',
                label: '星级评定',
                text: '星级评定',
                value: 3,
                disabled: false,
            },
            {
                id: '5',
                label: '动态评论',
                text: '动态评论',
                value: 5,
                disabled: false,
            },
            {
                id: '4',
                label: '帖子互动',
                text: '帖子互动',
                value: 4,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'C1or0',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '1',
                label: '是',
                text: '是',
                value: 1,
                disabled: false,
            },
            {
                id: '0',
                label: '否',
                text: '否',
                value: 0,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'OrderStatus',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '0',
                label: '待接单',
                text: '待接单',
                value: '0',
                disabled: false,
            },
            {
                id: '1',
                label: '待完成',
                text: '待完成',
                value: '1',
                disabled: false,
            },
            {
                id: '2',
                label: '待评价',
                text: '待评价',
                value: '2',
                disabled: false,
            },
            {
                id: '3',
                label: '已评价',
                text: '已评价',
                value: '3',
                disabled: false,
            },
            {
                id: '4',
                label: '已取消',
                text: '已取消',
                value: '4',
                disabled: false,
            },
        ]
    }
];

// 获取全部数组
mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, datas, config.headers, config];
});
